package hello;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * Created by xin on 2015/2/7 0007.
 */
@Component
@ConfigurationProperties
public class MyBean {

    //    @Value("${name}")
    private String name;

    public void sayHello() {
        System.out.println(name);
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}
